package com.example.hyg_veintype.utils;

import java.math.BigDecimal;

/**
 * @author: yyw
 * time: 2020/12/21 14:17
 * desc:
 */
public class DoubleUtils {
    public static String double2ToStr(double d) {
        BigDecimal bigDecimal = new BigDecimal(d);
        double d1 = bigDecimal.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();
        return d1+"";
    }
}
